#
# Makefile builds the IK solver
#
CC= g++ -g -Wall -O2 -fmessage-length=0
CCOPTS= -c -I./ 
LDOPTS= -L./ 
SOURCES=  glut_example.cpp link.cpp linkManager.cpp triple.cpp IkTestFigure.cpp StickFigure.cpp Megaman.cpp
OBJECTS =   glut_example.o link.o linkManager.o triple.o IkTestFigure.o StickFigure.o Megaman.o
TARGET = ik
GL_LIB  =  -lglut -lGLU -lGL -lX11
test: $(OBJECTS) 
	$(CC) $(LDOPTS) $(GL_LIB) $(OBJECTS) -o $(TARGET)

glut_example.o:                 
	$(CC) $(CCOPTS) $(SOURCES) 
link.o:                 
	$(CC) $(CCOPTS) $(SOURCES) 
linkManager.o:                 
	$(CC) $(CCOPTS) $(SOURCES) 
triple.o:                 
	$(CC) $(CCOPTS) $(SOURCES) 
character.o:                 
	$(CC) $(CCOPTS) $(SOURCES) 
clean:
	/bin/rm -f *.o 

default: clean test
